package com.sanjin.dubbo.serialization.jdk;

import com.sanjin.dubbo.serialization.ObjectInput;
import com.sanjin.dubbo.serialization.ObjectOutput;
import com.sanjin.dubbo.serialization.Serialization;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

/**
 * @author: jiangxch
 * @date: 2021/2/14 上午3:09
 */
public class JdkSerialization implements Serialization {
    
    public ObjectOutput getSerialization(OutputStream outputStream) throws IOException {
        return new JdkObjectOutput(outputStream);
    }
    
    public ObjectInput getDeserialization(InputStream inputStream) throws IOException {
        return new JdkObjectInput(inputStream);
    
    }
}
